network interface dhcp
Configure the network interface to request a dynamic IPv4 address. To configure an IPv6 address, use network interface ipv6.
Note
DHCP is not recommended.
User access
admin
Syntax
network interface dhcp -device <netdevice> [-force]
Argument(s) | Shortcut | Description |
---|---|---|
-device <netdevice> | -d | Specifies the interface you want to configure to use DHCP. Valid Values: - eth0 - eth1 - eth2 (ProtectServer 3+ External only) - eth3 (ProtectServer 3+ External only) - bond0 |
-force | -f | Force the action without prompting for confirmation. |
Example
psesh:>network interface dhcp -device eth0
NOTICE: The network service must be restarted for new network settings to take effect.
If you are sure that you wish to restart the network, then type 'proceed', otherwise type 'quit'
> proceed
Proceeding...
e1000e: eth0 NIC Link is Down
Restarting network service...
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0...ADDCONF(NETDEV_UP): eth0: link is not ready
e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
done.
[ OK ]
Command Result : 0 (Success)